NOVELTY - Production of methanol comprises steam reforming hydrocarbon in reforming zone and during reforming stage of cyclic steam reformer having reforming stage and regeneration stage, the steam reforming being conducted under conditions to produce first effluent stream containing synthesis gas; and ncombusting fuel and oxygen-containing gas in regeneration stage of reformer to reheat the reforming zone to temperature sufficient to generate flue gas.    USE - For producing methanol used for production of olefins.    ADVANTAGE - The process integrates pressure swing reforming in a manner that maximizes thermal efficiency and minimizes capital cost.    DETAILED DESCRIPTION - Production of methanol comprises:    (1) steam reforming a hydrocarbon in a reforming zone (2) and during the reforming stage of a cyclic steam reformer (1) having a reforming stage and a regeneration stage, the steam reforming being conducted under conditions effective to produce a first effluent stream containing synthesis gas;    (2) combusting a fuel and an oxygen-containing gas in the regeneration stage of the reformer so as to reheat the reforming zone to a temperature sufficient for the reforming stage and generate a flue gas;    (3) contacting part of the first effluent stream with a methanol synthesis catalyst under conditions effective to convert synthesis gas to methanol and form a methanol-containing stream and a tail gas stream comprising unreacted carbon monoxide and hydrogen; and    (4) separating hydrogen from at least one of the first effluent stream and the tail gas stream and recycling at least part of the hydrogen as part of the fuel for the regeneration stage of the cyclic steam reformer.    An INDEPENDENT CLAIM is also included for a process for producing olefins comprising contacting the produced methanol with a molecular sieve catalyst under conditions to convert the methanol to an olefin-containing product.    DESCRIPTION OF DRAWING(S) - The figure schematic illustrates the basic reforming and regeneration stages of a pressure swing reforming process.    Steam reformer (1)    Reforming zone (2)    First and second ends of reforming zone (3, 9)    Temperature profile (23)    Temperature gradient (24)